package com.yeyaomai.dksns.service.impl;

import java.util.Date;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.yeyaomai.dksns.dao.TrendAnalysisDayDao;
import com.yeyaomai.dksns.domain.TrendAnalysisDay;
import com.yeyaomai.dksns.service.TrendAnalysisDayService;

@Service
public class TrendAnalysisDayServiceImpl implements TrendAnalysisDayService {

	@Resource
	private TrendAnalysisDayDao trendAnalysisDayDao;
	

	@Override
	public void addTrendAnalysisDay(TrendAnalysisDay trendAnalysisDay) {
		trendAnalysisDayDao.addTrendAnalysisDay(trendAnalysisDay);

	}

	@Override
	public TrendAnalysisDay getTrendAnalysisDayById(long id) {
		return trendAnalysisDayDao.getTrendAnalysisDayById(id);
	}

	@Override
	public List<TrendAnalysisDay> getTrendAnalysisDayByTrendDay(
			Date fromTrendDay, Date toTrendday) {
		return trendAnalysisDayDao.getTrendAnalysisDayByTrendDay(fromTrendDay,
				toTrendday);
	}

}
